﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="SessionTraking.aspx.cs" Inherits="KerriganClient.View.SessionTraking" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" runat="server">

<asp:GridView ID="SessionsTrakingGrid" runat="server" AutoGenerateColumns="False" 
        ForeColor="#333333" GridLines="Horizontal"
        ShowFooter="True" Width="100%" UseAccessibleHeader="False" PageSize="5" 
        AllowPaging="True" style="margin-right: 0px"  OnRowDataBound="SessionsTrakingGrid_RowDataBound" 
        OnPageIndexChanging="SessionsTrakingGrid_Paging" OnRowCommand="SessionsTrakingGrid_RowCommand">
            
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />

        <Columns>
            <%--<asp:TemplateField HeaderText="Category" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <h3><asp:HyperLink ID="lnkTopic" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>' NavigateUrl='<%# "~/Topic.aspx?id="+DataBinder.Eval(Container.DataItem, "IdForumCategory")%>'></asp:HyperLink></h3> <br /><%# DataBinder.Eval(Container.DataItem, "Description")%> 
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>--%>

            <asp:TemplateField HeaderText="Start date" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "Date")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="End date" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "EndDate")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Level" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "LevelSession.Name")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Instructor" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "Instructor.Person.NickName")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Price" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "Formation.Price")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Formation" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "Formation.Name")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>

<%--            <asp:TemplateField HeaderText="Date" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "Formation.FormationCategoryDC.Name")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField> --%>   

            <asp:TemplateField HeaderText="Agence" HeaderStyle-HorizontalAlign="Center" ShowHeader="False">
                <ItemTemplate>
                    <div style="text-align:center"> <%# DataBinder.Eval(Container.DataItem, "Agency.Name")%> </div>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
            </asp:TemplateField>


        </Columns>
    </asp:GridView>

</asp:Content>
